GtkNotebook: Use gdouble in coordinate calculations
authorCarlos Garnacho <carlosg@gnome.org>
Mon, 7 Dec 2015 15:32:15 +0000 (16:32 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Mon, 7 Dec 2015 16:40:01 +0000 (17:40 +0100)
commitc0477c2c5242f678155316714c0394039ed8fd7b
treebf96f3260ce96ac16e472f86a5d53b012a834f8f
parent5088b4937e77a6aa7b828e6a9ce66e47ef7deceb
GtkNotebook: Use gdouble in coordinate calculations

Otherwise rounding errors fool the "tab under coordinates" checks on
crossing events, which will be triggered close enough to the window
rectangle if the pointer moves slowly enough.

With this, the tab_prelight() function correctly figures out we've
moved the pointer outside the tab area when called in
gtk_notebook_leave_notify().

https://bugzilla.gnome.org/show_bug.cgi?id=759091
gtk/gtknotebook.c